number=int(input())
print(f"{number: <+10}")
print(f"{number: >+10}")
print(f"{abs(number): <+10}")
print(f"{abs(number): >+10}")